home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pbaseiv.zip / P4DBS000.TIP < prev    next >
Text File  |  1991-12-16  |  2KB  |  46 lines

  1. By using ObjectVision's multiple file linking and decision
  2. trees, I'm able to create great-looking applications in no
  3. time. However, the program's default navigation buttons
  4. aren't sufficient for many applications.
  5.  
  6. Here's a solution I've found useful when working with
  7. ObjectVision applications linked to Paradox and dBASE files.
  8. When you link to a file, you get five default buttons:
  9. Previous, Next, Clear, Delete, and Enter. When you open a
  10. form, ObjectVision doesn't know where in the database it is,
  11. and pressing Next or Previous will only confuse it.
  12.  
  13. The best way to solve this problem is to add two more
  14. buttons, Top and Bottom, to position you quickly at the
  15. beginning or end of the data base. First, use the Objects
  16. Field command to create two fields called Top and Bottom. I
  17. recommend positioning them near the default buttons and
  18. making them the same size and shape. Then, turn these new
  19. fields into buttons by selecting Properties Field type
  20. Button.
  21.  
  22. Next, attach decision trees to the buttons: Double-click on
  23. one of the new buttons to bring up an empty decision tree.
  24. Select Object Conclusion. For the Top button, enter the
  25. conclusion @TOP("linkname"); use @BOTTOM("linkname") for the
  26. Bottom button. For both of these, linkname is the name you
  27. created earlier for the link using the Tools Link Create
  28. command. From then on, these buttons will take you to the
  29. first and last records of the data base.
  30.  
  31. Richard Reiter
  32. Aptos, California
  33.  
  34. Editor's note: While this technique will let you get to the
  35. top or bottom of the database, you may not find what you're
  36. looking for there. Remember, relational data bases don't
  37. necessarily keep their records in any predefined sequence;
  38. thus, the first and last records in the data base may not be
  39. the first or last in alphabetical order.
  40.  
  41. Title: Getting to the Bottom of ObjectVision
  42. Category: DBS
  43. Issue date: Oct 1991
  44. Editor: Brett Glass
  45. Supplementary files: NONE
  46.